﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
    public class UsersHandler
    {
        // Handle to the Users DBAccess class
        UsersDBAccess objUsers = null;

        public UsersHandler()
        {
            objUsers = new UsersDBAccess();
        }

        public List<Users> GetAllUsers(String CONNECTION_STRING)
        {
            return objUsers.GetAllUsers(CONNECTION_STRING);
        }

        public Users GetUsersDetailsForPrivate(String UserID, String CONNECTION_STRING)
        {
            return objUsers.GetUsersDetailsForPrivate(UserID, CONNECTION_STRING);
        }

        public List<Users> GetUsersList(String CONNECTION_STRING)
        {
            return objUsers.GetUsersList(CONNECTION_STRING);
        }

        public Users GetUsersDetails(int UserID, String CONNECTION_STRING)
        {
            return objUsers.GetUsersDetails(UserID, CONNECTION_STRING);
        }

        public bool DeleteUsers(int UserID, String CONNECTION_STRING)
        {
            return objUsers.DeleteUsers(UserID, CONNECTION_STRING);
        }

        public bool UpdateUsers(Users obj, String CONNECTION_STRING)
        {
            return objUsers.UpdateUsers(obj, CONNECTION_STRING);
        }

        public bool AddNewUsers(Users obj, String CONNECTION_STRING)
        {
            return objUsers.AddNewUsers(obj, CONNECTION_STRING);
        }
        public Users GetUsersDetailsWithUserName(String UserName, String CONNECTION_STRING)
        {
            return objUsers.GetUsersDetailsWithUserName(UserName, CONNECTION_STRING);
        }

    }
}
